import request from "./request.js";

const loadOrders = function(params={}){
    return request.get("orders",{
        params
    })
}

const loadOrderDetail = function(oid=""){
    return request.get(`orders/${oid}`)
}

export default {
    loadOrders,loadOrderDetail
}